/*
 * This code is property of Threadsy. Use, duplication and disclosure
 * in any form without permission of copyright holder is prohibited.
 *
 */

package com.nen.session;

import java.io.IOException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

/**
 *
 * @author amitm
 */
public class NenHttpServletResponseWrapper extends HttpServletResponseWrapper {

    public NenHttpServletResponseWrapper(HttpServletResponse response) {
        super(response);
    }

//    @Override
//    public void flushBuffer() throws IOException {
//        //super.flushBuffer();
//        System.out.println("---- Flush called");
//    }
//
//    public void commit() throws IOException {
//        super.flushBuffer();
//        System.out.println("---- Commit");
//    }

    @Override
    public void sendRedirect(String location) throws IOException {
        //super.sendRedirect(location);
        System.out.println("---- Redirecting to "+location);
    }

    @Override
    public void addCookie(Cookie cookie) {
        System.out.println("--- Adding cookies");
        super.addCookie(cookie);
    }




}
